package com.hxd.otc.module.my.bean;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * Created by lzy on 2018/12/5 0005.
 * description ${身份验证规则信息}
 */
public class RealNameAuthRuleInfoBean implements Serializable {

    public static final String V0 = "realNameAuthV0";
    public static final String V1 = "realNameAuthV1";
    public static final String V2 = "realNameAuthV2";

    private int id;
    private String cronKey;//realNameAuthV0,realNameAuthV1,realNameAuthV2(V0,V1,V2等级的唯一标识)
    private double cronValue;//限制值
    private String minValue;
    private String groupName;
    private String descri;
    private String createUser;
    private String createTime;
    private String updateUser;
    private String updateTime;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getCronKey() {
        return cronKey;
    }

    public void setCronKey(String cronKey) {
        this.cronKey = cronKey;
    }

    public double getCronValue() {
        return cronValue;
    }

    public void setCronValue(double cronValue) {
        this.cronValue = cronValue;
    }

    public String getCronValueDesc() {
        if (cronValue == 0) {
            return "不可进行交易。";
        } else if (cronValue == -1) {
            return "卖出交易无限制。";
        } else {
            return "每天可进行" + BigDecimal.valueOf(cronValue).longValue() + "人民币以内的卖出交易。";
        }
    }

    public String getMinValue() {
        return minValue;
    }

    public void setMinValue(String minValue) {
        this.minValue = minValue;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public String getDescri() {
        return descri;
    }

    public void setDescri(String descri) {
        this.descri = descri;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "RealNameAuthRuleInfoBean{" +
                "id=" + id +
                ", cronKey='" + cronKey + '\'' +
                ", cronValue='" + cronValue + '\'' +
                ", minValue='" + minValue + '\'' +
                ", groupName='" + groupName + '\'' +
                ", descri='" + descri + '\'' +
                ", createUser='" + createUser + '\'' +
                ", createTime='" + createTime + '\'' +
                ", updateUser='" + updateUser + '\'' +
                ", updateTime='" + updateTime + '\'' +
                '}';
    }
}
